//
//  AppDelegate+RootViewCtrl.m
//  ACE
//
//  Created by Mickey Yin on 2021/12/13.
//

#import "AppDelegate+RootViewCtrl.h"
#import "YLJTabBarController.h"

@implementation AppDelegate (RootViewCtrl)

- (void)configRootView {
    
    self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    self.window.rootViewController = [[YLJTabBarController alloc] init];
    [self.window makeKeyAndVisible];
    
    //[self configGlobalUIStyle];//配置全局UI的样式
}

/** 配置全局UI的样式 */
- (void)configGlobalUIStyle {
    /** 导航栏不透明 */
    [[UINavigationBar appearance] setTranslucent:NO];
    [[UINavigationBar appearance] setBackgroundColor:[UIColor lightGrayColor]];
    [[UINavigationBar appearance] setTitleTextAttributes:@{NSFontAttributeName:[UIFont systemFontOfSize:24.0], NSForegroundColorAttributeName: [UIColor colorWithRed:0/255.0 green:0/255.0 blue:0/255.0 alpha:1.0]}];
}

@end
